const Router = require('koa-router');
const router = new Router({prefix:'/articles'});
const {find,findAll,create,update,delete:del} = require('../controllers/articles');

router.get('/',find);
router.get('/findAll',findAll)
router.post('/',create);
router.put('/:id',update);
router.delete('/:id',del);

module.exports = router;